	<div class="u_buzz_item">
		<div class="u_buzz_item_l">
			<a href="<?php echo Yii::app()->createUrl('profile/index', array('id'=>$model->user->id));?>">
				<?php if($model->user->avatar_info){ ?>
					<?php echo $this->material_image('', $model->user->avatar_info->name, '50', 'photos/'. $model->user->id . '/' . 0); ?>
				<?php }else{ ?>
					<?php echo $this->material_image('', 'noimage.gif', '50', ''); ?>
				<?php } ?>			
			</a>
		</div>
		<div class="u_buzz_item_r">
			<div class="u_buzz_name">
				<a href="<?php echo Yii::app()->createUrl('profile/index', array('id'=>$model->user->id));?>" class="profileName">
					<?php echo CHtml::encode($model->user->full_name); ?>
				</a>
				<?php $date_diff = date_diff(date_create($model->update), date_create()); ?>
				<?php if($date_diff->h){ ?>
					<span class="u_buzz_date"><?php echo Yii::app()->dateFormatter->formatDateTime($model->crdate, 'long','short'); ?></span>
				<?php }else{ ?>
					<span class="u_buzz_date"><?php echo $date_diff->i; ?> мин. назад</span>
				<?php } ?>
				<div class="u_buzz_link_block hidden">
					<?php if(($model->user->id == Yii::app()->user->id) || ($model->group->checkAdmin != NULL)){ ?>
						<a href="<?php echo Yii::app()->createAbsoluteUrl("groupsDiscussion/delete", array('discussion'=>$model->id)); ?>" class="u_buzz_link l2 comment_delete" rel="<?php echo $parent_id; ?>" onclick="return false;">
							<div class="user_action_item_tooltip c hidden"><div class="cc">Удалить сообщение</div></div>
						</a>
					<?php } ?>
				</div>
			</div>
			<p class="u_buzz_text">
				<?php echo CHtml::encode($model->text); ?>
				
				<!-- <div class="commentPhoto"> -->
					<?php //foreach($model->images as $image){ ?>
						<?php //if($image->photo){ ?>
							<!-- <div class="commentPhotoItem"> -->
								<!-- <a href="<?php //echo Yii::app()->createUrl('albums/photo', array('id'=>$image->photo->id));?>" class="photoBg"> -->
									<?php //echo $this->material_image($image->photo->album_id, $image->photo->name, '270', 'photos/'.$image->photo->album_id); ?>
								<!-- </a> -->
							<!-- </div>  -->
						<?php //} ?>
					<?php //} ?>
				<!-- </div> -->
				
				<!-- <div class="commentVideo"> -->
					<?php //foreach($model->videos as $video){ ?>
						<!-- <div class="commentVideoItem"><?php //echo $video->video->code; ?></div> -->
					<?php //} ?>	
				<!-- </div> -->
				
				<!-- <div class="commentMusic"> -->
					<!-- <div class="u_audio_player profileMusic"> -->
					<?php //foreach($model->musics as $music){ ?>
						<!-- <div class="u_audio__item">
							<div class="play_btn"></div>
							<div class="u_audio_track">
								<a href="#" data-src="<?php //echo '/upload/audio/'.$music->music->music_info->file;?>" class="u_audio__autor"><?php //echo $music->music->artist;?></a>
								<span> &mdash; </span>
								<a href="#" data-src="<?php //echo '/upload/audio/'.$music->music->music_info->file;?>" class="u_audio__name"><?php //echo $music->music->name;?></a>
							</div>
						</div> -->
					<?php //} ?>	
					<!-- </div> -->
				<!-- </div>											 -->
			</p>		
		</div>
		
				
	</div>
	<div class="commentList newCommentAfter">
		<?php $this->renderPartial('_commentList',array(
			'comments' => $comments,
			'countComments' => $countComments,
			'parent_id' => $parent_id,
			'offset' => $offset,
			'limit' => $limit		
		)); ?>
	</div>
	<div class="u_buzz">
		<div class="l tar">
			<a href="<?php echo Yii::app()->createUrl('profile/index', array('id'=>Yii::app()->user->id));?>">
				<?php if($model->user->avatar_info){ ?>
					<?php echo $this->material_image('', $model->user->avatar_info->name, '50', 'photos/'. $model->user->id . '/' . 0); ?>
				<?php }else{ ?>
					<?php echo $this->material_image('', 'noimage.gif', '50', ''); ?>
				<?php } ?>			
			</a>
		</div>
		<div class="r">
			<form action="<?php echo Yii::app()->createAbsoluteUrl('groupsDiscussion/insertcomment', array('discussion'=>$_GET['discussion'], 'parent_id'=>$parent_id)); ?>" id="buzz_message" class="new_comment_form">
				<div class="flds_border">
					<div class="flds_border_inside">
						<textarea name="text" class="new_comment_text">Ваше сообщение</textarea>
						<input type="hidden" name="parent_id" class="new_comment_parent_id" value="<?php echo $parent_id; ?>" />
					</div>
				</div>
				<div class="attachment"></div>
				<div class="buzz_action">
					<div class="buzz_btn btn">
						<input type="button" value="Написать" class="new_comment_button" />
					</div>
					<!-- <div class="buzz_adds">
						<div class="buzz_adds_item add_attachment_to_comment" rel="<?php //echo Yii::app()->createAbsoluteUrl('groupsDiscussion/getvideosforcomment', array('discussion'=>$_GET['discussion'])); ?>">
							<div class="buzz_adds_item_icon i4"></div>
							<div class="user_action_item_tooltip c hidden"><div class="cc">Добавить видеоролик</div></div>
						</div>
						<div class="buzz_adds_item add_attachment_to_comment" rel="<?php //echo Yii::app()->createAbsoluteUrl('groupsDiscussion/getmusicsforcomment', array('discussion'=>$_GET['discussion'])); ?>">
							<div class="buzz_adds_item_icon i5"></div>
							<div class="user_action_item_tooltip c hidden"><div class="cc">Добавить аудиозапись</div></div>
						</div>
						<div class="buzz_adds_item add_attachment_to_comment" rel="<?php //echo Yii::app()->createAbsoluteUrl('groupsDiscussion/getimagesforcomment', array('discussion'=>$_GET['discussion'])); ?>">
							<div class="buzz_adds_item_icon i6"></div>
							<div class="user_action_item_tooltip c hidden"><div class="cc">Добавить изображение</div></div>
						</div>
						<div class="clear"></div>
					</div> -->
				</div>
			</form>
		</div>
	</div>
	
	
